package com.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author a1926
 */
@Controller
public class MyController {

    @RequestMapping("/")
    public String index(){
        return "index";
    }

    @RequestMapping("login")
    public String toLogin(){
        return "login";
    }

    @RequestMapping(value = "Login",params = {"Username=admin","Password=123456"})
    public String success(){
        return "success";
    }
}
